'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	const version = await db.collection("version").get()


	//返回数据给客户端
	return {
		code: 0,
		msg: '',
		data: {
			version: version.data[0].current_version,
			downLoadLinkUrl: "https://mp-5fb0bc52-017f-41d6-95fb-188b4fdeba25.cdn.bspapp.com/cloudstorage/bc7b447a-c208-437e-8881-b66393e98f14.apk"
		}
	}
};
